package com.gcd.alienandwheel.actor;

import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.gcd.alienandwheel.MyUtil;

/**
 *
 * @author Rezan Achmad
 */
public class Track extends Actor {

    Texture textureTrack;

    public Track(String name) {
        super(name);
        textureTrack = new Texture(MyUtil.loadImage("map.png"));
        width = textureTrack.getWidth();
        height = textureTrack.getHeight();
        originX = width / 2;
        originY = height / 2;
    }

    @Override
    protected void draw(SpriteBatch batch, float parentAlpha) {
        batch.draw(textureTrack, x, y, originX, originY, width, height, scaleX, scaleY, rotation, 0, 0, (int)width, (int)height, false, false);
    }

    @Override
    protected boolean touchDown(float x, float y, int pointer) {
        return false;
    }

    @Override
    protected boolean touchUp(float x, float y, int pointer) {
        return false;
    }

    @Override
    protected boolean touchDragged(float x, float y, int pointer) {
        return false;
    }

    @Override
    public Actor hit(float x, float y) {
        return null;
    }
}
